package com.mpyy.pojo;

import lombok.*;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
* inventory_desc 实体类
* Wed Feb 23 09:47:17 CST 2022 tangneng
*/ 
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class InventoryDesc {

	private String inveDescId;

	private String proId;

	private String inveDescName;

	private String inveDescType;

	private String inveDescUnit;

	private String inveDescSize;

	private String inveDescPostil;

	private String inveDescManufacturer;

	private String inveDescBatchNum;

	private Date inveDescStartDate;

	private Date inveDescValidityDate;

	private Integer inveDescInventoryNum;

	private Double inveDescPrice;

	private String inveDescDepot;

	private Integer inveDescProState;

	private String inveDescComment;

	/*供货商*/
	private String supId;

	private String null2;

	/*库存总值*/
	private Double inveTotalPrice;

	/*销售总数*/
	private Integer inveTotalSaleNum;

	/*预设售价*/
	private Double invePresetPrice;

	/*售价总值*/
	private Double inveSaleTotalPrice;

	/*进货日期*/
	private Date purStoDate;

	/* 分页 */
	private Paging paging;

	/*开始日期*/
	private Date startChangeDate;

	/*截至日期*/
	private Date stopChangeDate;

	/*统计时间*/
	private Date statisticalTime;

	/*库存下限*/
	private Integer proStockLower;

	/*商品编号与名称*/
	private String proIdAndproName;

	/*调拨数量*/
	private Integer inveDescNum;

	/*盘点单号*/
	private String invCheckId;

	/*盘点明细编号*/
	private String invCheckDescId;

	/* 单据筛选 */
	private String documentsScreening;

	/*盘点明细批号*/
	private String invCheckDescBatchNum;
	public void setStartChangeDate(String startChangeDate) throws ParseException {
		if(!"".equals(startChangeDate)){
			this.startChangeDate = new SimpleDateFormat("yyyy-MM-dd").parse(startChangeDate);
		}else {
			this.startChangeDate = null;
		}
	}

	public void setStopChangeDate(String stopChangeDate) throws ParseException {
		this.stopChangeDate = new SimpleDateFormat("yyyy-MM-dd").parse(stopChangeDate);
	}

	public void setStatisticalTime(String statisticalTime) throws ParseException {
		this.statisticalTime = new SimpleDateFormat("yyyy-MM").parse(statisticalTime);
	}

	/* 采购进货详情单 */
	private PurchaseStockDesc purchaseStockDesc;

	/* 仓库 */
	private DepotInfo depotInfo;

	/* 采购进货 */
	private PurchaseStock purchaseStock;
}

